package com.dao.impl;
import com.dao.UserDao;
import com.dao.UserBiz;
import com.entity.User;

public class UserBizImpl implements UserBiz{
	private UserDao userDao=new UserJdbcDaoImpl();
	public User login(String uname, String upass) {
		User user=userDao.findByName(uname);
		if(user!=null&&user.getUpass()!=null&&user.getUpass().equals(upass)){
			return user;
		}else{
			return null;
		}
		
	}

}
